package com.bestcem.xm.txtanls.service.dto.topic;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 上传/导出话题信息DTO
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/10-17:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TopicDataDTO {

    /**
     * 话题组名
     */
    @Size(max = 20, message = "名称长度不能超过20")
    @ExcelProperty(index = 0)
    private String topicGroupName;
    /**
     * 话题名
     */
    @NotBlank(message = "话题名不能为空")
    @Size(max = 20, message = "名称长度不能超过20")
    @ExcelProperty(index = 1)
    private String topicName;

    /**
     * 话题关键词
     */
    @ExcelProperty(index = 2)
    private String keyword;
}
